cmake_minimum_required(VERSION 3.18 FATAL_ERROR)

file(GLOB_RECURSE RES_FILES root/*.*)
source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR}/root PREFIX "Resources" FILES ${RES_FILES})

add_custom_target(Res SOURCES ${RES_FILES} DEPENDS ${RES_FILES})

define_property(TARGET PROPERTY RESOURCE_DIR)
set_target_properties(Res PROPERTIES RESOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/root)
